<!DOCTYPE html>
<html lang="en">
	<head>
		<title>票据种类</title>
		<#include "../inc/header.ftl"/>
	</head>

	<body class="no-skin">

		<div class="main-container ace-save-state" id="main-container">

			<div class="main-content">
				<div class="main-content-inner">

					<div class="page-content">
						<div class="row">
							<div class="col-xs-12">
								<table id="MainGrid"></table>
								<div id="toolbar">

								</div>
							</div>
						</div><!-- /.row -->
					</div><!-- /.page-content -->

                </div>
			</div><!-- /.main-content -->
		</div><!-- /.main-container -->

		<!-- basic scripts -->
		<#include "../inc/basicjs.ftl"/>

		<!-- inline scripts related to this page -->
		<script type="text/javascript">
            //列表-------------------------------------------------
			jQuery(function($) {
				// 右侧表格
				$('#MainGrid').datagrid({
					url: prefix + '/base/basedata/findBillTypePage',
                    checkbox: true,
                    pagination: true,
					fitColumns:true,
					striped: true,
					singleSelect: true,
					loadMsg: "正在加载数据，请稍后...",
					columns:[[
                        { title: '票据ID',field: 'billtypeid',width:50},
                        { title: '票据编码',field: 'billcode',width: 100},
                        { title: '票据名称',field: 'billname',width:300},
                        { title: '票号长度',field: 'codelength',width:100}
					]],
					toolbar: '#toolbar'
				});

				$(window).resize(function() {
					$('#MainGrid').datagrid('resize');
				});
			});


        </script>
	</body>
</html>
